<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="en" />
        <link href="./assets/ffd55088/css/bootstrap.css" rel="stylesheet">
<link href="./assets/5cf9384a/solarized_light.css" rel="stylesheet">
<link href="./assets/6c54116e/style.css" rel="stylesheet">
<script src="./assets/a44cef0f/jquery.js"></script>
<script src="./assets/ffd55088/js/bootstrap.js"></script>
<script src="./assets/8ac4e28a/jssearch.js"></script>    <title>MongoDateValidator, yii\mongodb\validators\MongoDateValidator - Yii Framework 2.0 API Documentation</title>
</head>
<body>

<div class="wrap">
    <nav id="w11801" class="navbar-inverse navbar-fixed-top navbar" role="navigation"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w11801-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button><a class="navbar-brand" href="./index.html">Yii Framework 2.0 API Documentation</a></div><div id="w11801-collapse" class="collapse navbar-collapse"><ul id="w11802" class="navbar-nav nav"><li><a href="./index.html">Class reference</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Extensions <b class="caret"></b></a><ul id="w11803" class="dropdown-menu"><li><a href="./ext-apidoc-index.html" tabindex="-1">apidoc</a></li>
<li><a href="./ext-authclient-index.html" tabindex="-1">authclient</a></li>
<li><a href="./ext-bootstrap-index.html" tabindex="-1">bootstrap</a></li>
<li><a href="./ext-codeception-index.html" tabindex="-1">codeception</a></li>
<li><a href="./ext-debug-index.html" tabindex="-1">debug</a></li>
<li><a href="./ext-elasticsearch-index.html" tabindex="-1">elasticsearch</a></li>
<li><a href="./ext-faker-index.html" tabindex="-1">faker</a></li>
<li><a href="./ext-gii-index.html" tabindex="-1">gii</a></li>
<li><a href="./ext-imagine-index.html" tabindex="-1">imagine</a></li>
<li><a href="./ext-jui-index.html" tabindex="-1">jui</a></li>
<li><a href="./ext-mongodb-index.html" tabindex="-1">mongodb</a></li>
<li><a href="./ext-redis-index.html" tabindex="-1">redis</a></li>
<li><a href="./ext-smarty-index.html" tabindex="-1">smarty</a></li>
<li><a href="./ext-sphinx-index.html" tabindex="-1">sphinx</a></li>
<li><a href="./ext-swiftmailer-index.html" tabindex="-1">swiftmailer</a></li>
<li><a href="./ext-twig-index.html" tabindex="-1">twig</a></li></ul></li>
<li><a href="./guide-README.html">Guide</a></li></ul><div class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input id="searchbox" type="text" class="form-control" placeholder="Search">
  </div>
</div>
</div></nav>
    <div id="search-resultbox" style="display: none;" class="modal-content">
        <ul id="search-results">
        </ul>
    </div>

    
<div class="row">
    <div class="col-md-3">
                <div id="navigation" class="list-group"><a class="list-group-item" href="#navigation-11792" data-toggle="collapse" data-parent="#navigation">yii\mongodb <b class="caret"></b></a><div id="navigation-11792" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-activefixture.html">ActiveFixture</a>
<a class="list-group-item" href="./yii-mongodb-activequery.html">ActiveQuery</a>
<a class="list-group-item" href="./yii-mongodb-activerecord.html">ActiveRecord</a>
<a class="list-group-item" href="./yii-mongodb-batchqueryresult.html">BatchQueryResult</a>
<a class="list-group-item" href="./yii-mongodb-cache.html">Cache</a>
<a class="list-group-item" href="./yii-mongodb-collection.html">Collection</a>
<a class="list-group-item" href="./yii-mongodb-command.html">Command</a>
<a class="list-group-item" href="./yii-mongodb-connection.html">Connection</a>
<a class="list-group-item" href="./yii-mongodb-database.html">Database</a>
<a class="list-group-item" href="./yii-mongodb-exception.html">Exception</a>
<a class="list-group-item" href="./yii-mongodb-logbuilder.html">LogBuilder</a>
<a class="list-group-item" href="./yii-mongodb-migration.html">Migration</a>
<a class="list-group-item" href="./yii-mongodb-query.html">Query</a>
<a class="list-group-item" href="./yii-mongodb-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-mongodb-session.html">Session</a></div>
<a class="list-group-item" href="#navigation-11793" data-toggle="collapse" data-parent="#navigation">yii\mongodb\console\controllers <b class="caret"></b></a><div id="navigation-11793" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-console-controllers-migratecontroller.html">MigrateController</a></div>
<a class="list-group-item" href="#navigation-11794" data-toggle="collapse" data-parent="#navigation">yii\mongodb\debug <b class="caret"></b></a><div id="navigation-11794" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-debug-explainaction.html">ExplainAction</a>
<a class="list-group-item" href="./yii-mongodb-debug-mongodbpanel.html">MongoDbPanel</a></div>
<a class="list-group-item" href="#navigation-11795" data-toggle="collapse" data-parent="#navigation">yii\mongodb\file <b class="caret"></b></a><div id="navigation-11795" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-file-activequery.html">ActiveQuery</a>
<a class="list-group-item" href="./yii-mongodb-file-activerecord.html">ActiveRecord</a>
<a class="list-group-item" href="./yii-mongodb-file-collection.html">Collection</a>
<a class="list-group-item" href="./yii-mongodb-file-cursor.html">Cursor</a>
<a class="list-group-item" href="./yii-mongodb-file-download.html">Download</a>
<a class="list-group-item" href="./yii-mongodb-file-query.html">Query</a>
<a class="list-group-item" href="./yii-mongodb-file-streamwrapper.html">StreamWrapper</a>
<a class="list-group-item" href="./yii-mongodb-file-upload.html">Upload</a></div>
<a class="list-group-item" href="#navigation-11796" data-toggle="collapse" data-parent="#navigation">yii\mongodb\gii\model <b class="caret"></b></a><div id="navigation-11796" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-gii-model-generator.html">Generator</a></div>
<a class="list-group-item" href="#navigation-11797" data-toggle="collapse" data-parent="#navigation">yii\mongodb\i18n <b class="caret"></b></a><div id="navigation-11797" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-i18n-mongodbmessagesource.html">MongoDbMessageSource</a></div>
<a class="list-group-item" href="#navigation-11798" data-toggle="collapse" data-parent="#navigation">yii\mongodb\log <b class="caret"></b></a><div id="navigation-11798" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-log-mongodbtarget.html">MongoDbTarget</a></div>
<a class="list-group-item" href="#navigation-11799" data-toggle="collapse" data-parent="#navigation">yii\mongodb\rbac <b class="caret"></b></a><div id="navigation-11799" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mongodb-rbac-mongodbmanager.html">MongoDbManager</a>
<a class="list-group-item" href="./yii-mongodb-rbac-permission.html">Permission</a>
<a class="list-group-item" href="./yii-mongodb-rbac-role.html">Role</a></div>
<a class="list-group-item active" href="#navigation-11800" data-toggle="collapse" data-parent="#navigation">yii\mongodb\validators <b class="caret"></b></a><div id="navigation-11800" class="submenu panel-collapse collapse in"><a class="list-group-item active" href="./yii-mongodb-validators-mongodatevalidator.html">MongoDateValidator</a>
<a class="list-group-item" href="./yii-mongodb-validators-mongoidvalidator.html">MongoIdValidator</a></div></div>    </div>
    <div class="col-md-9 api-content" role="main">
        <h1>Class yii\mongodb\validators\MongoDateValidator</h1>
<div class="top-nav">
    <a href="index.html">All Classes</a>
            | <a href="#properties">Properties</a>
                | <a href="#methods">Methods</a>
                    | <a href="#constants">Constants</a>
    </div>

<table class="summaryTable docClass table table-bordered">
    <colgroup>
        <col class="col-name" />
        <col class="col-value" />
    </colgroup>
            <tr><th>Inheritance</th><td><a href="yii-mongodb-validators-mongodatevalidator.html">yii\mongodb\validators\MongoDateValidator</a> &raquo;
<a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a> &raquo;
<a href="yii-validators-validator.html">yii\validators\Validator</a> &raquo;
<a href="yii-base-component.html">yii\base\Component</a> &raquo;
<a href="yii-base-object.html">yii\base\Object</a></td></tr>
                <tr><th>Implements</th><td><a href="yii-base-configurable.html">yii\base\Configurable</a></td></tr>
                                    <tr><th>Available since version</th><td>2.0.4</td></tr>
                    <tr>
          <th>Source Code</th>
          <td><a href="https://github.com/yiisoft/yii2-mongodb/blob/master/validators/MongoDateValidator.php">https://github.com/yiisoft/yii2-mongodb/blob/master/validators/MongoDateValidator.php</a></td>
        </tr>
    </table>

<div class="class-description">
    <p><strong>MongoDateValidator is an enhanced version of <a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a>, which supports <span class="broken-link">\MongoDate</span> values.</strong></p>
    <p>Usage example:</p>
<pre><code class="hljs php language-php"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Customer</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">yii</span>\<span class="hljs-title">mongodb</span>\<span class="hljs-title">ActiveRecord</span>
</span>{
    ...
    <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">rules</span><span class="hljs-params">()</span>
    </span>{
        <span class="hljs-keyword">return</span> [
            [<span class="hljs-string">'date'</span>, <span class="hljs-string">'yii\mongodb\validators\MongoDateValidator'</span>, <span class="hljs-string">'format'</span> =&gt; <span class="hljs-string">'MM/dd/yyyy'</span>]
        ];
    }
}
</code></pre>

    <p>See also <a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a>.</p></div>

<a id="properties"></a>

<div class="summary doc-property">
<h2>Public Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="$attributes">
        <td><a href="yii-validators-validator.html#$attributes-detail">$attributes</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>Attributes to be validated by this validator.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$behaviors">
        <td><a href="yii-base-component.html#$behaviors-detail">$behaviors</a></td>
        <td><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
        <td>List of behaviors attached to this component</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="$builtInValidators">
        <td><a href="yii-validators-validator.html#$builtInValidators-detail">$builtInValidators</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>List of built-in validators (name =&gt; class or configuration)</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$enableClientValidation">
        <td><a href="yii-validators-validator.html#$enableClientValidation-detail">$enableClientValidation</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to enable client-side validation for this validator.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$except">
        <td><a href="yii-validators-validator.html#$except-detail">$except</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>Scenarios that the validator should not be applied to.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$format">
        <td><a href="yii-validators-datevalidator.html#$format-detail">$format</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The date format that the value being validated should follow.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$isEmpty">
        <td><a href="yii-validators-validator.html#$isEmpty-detail">$isEmpty</a></td>
        <td><a href="http://www.php.net/language.types.callable">callable</a></td>
        <td>A PHP callable that replaces the default implementation of <a href="yii-validators-validator.html#isEmpty()-detail">isEmpty()</a>.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$locale">
        <td><a href="yii-validators-datevalidator.html#$locale-detail">$locale</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The locale ID that is used to localize the date parsing.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$max">
        <td><a href="yii-validators-datevalidator.html#$max-detail">$max</a></td>
        <td><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>Upper limit of the date.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$maxString">
        <td><a href="yii-validators-datevalidator.html#$maxString-detail">$maxString</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>User friendly value of upper limit to display in the error message.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$message">
        <td><a href="yii-validators-validator.html#$message-detail">$message</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The user-defined error message.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$min">
        <td><a href="yii-validators-datevalidator.html#$min-detail">$min</a></td>
        <td><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>Lower limit of the date.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$minString">
        <td><a href="yii-validators-datevalidator.html#$minString-detail">$minString</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>User friendly value of lower limit to display in the error message.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr id="$mongoDateAttribute">
        <td><a href="yii-mongodb-validators-mongodatevalidator.html#$mongoDateAttribute-detail">$mongoDateAttribute</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the attribute to receive the parsing result as <span class="broken-link">\MongoDate</span> instance.</td>
        <td><a href="yii-mongodb-validators-mongodatevalidator.html">yii\mongodb\validators\MongoDateValidator</a></td>
    </tr>
            <tr class="inherited" id="$on">
        <td><a href="yii-validators-validator.html#$on-detail">$on</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>Scenarios that the validator can be applied to.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$skipOnEmpty">
        <td><a href="yii-validators-validator.html#$skipOnEmpty-detail">$skipOnEmpty</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether this validation rule should be skipped if the attribute value
is null or an empty string.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$skipOnError">
        <td><a href="yii-validators-validator.html#$skipOnError-detail">$skipOnError</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether this validation rule should be skipped if the attribute being validated
already has some validation error according to some previous rules.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$timeZone">
        <td><a href="yii-validators-datevalidator.html#$timeZone-detail">$timeZone</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The timezone to use for parsing date and time values.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$timestampAttribute">
        <td><a href="yii-validators-datevalidator.html#$timestampAttribute-detail">$timestampAttribute</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the attribute to receive the parsing result.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$timestampAttributeFormat">
        <td><a href="yii-validators-datevalidator.html#$timestampAttributeFormat-detail">$timestampAttributeFormat</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The format to use when populating the <a href="yii-validators-datevalidator.html#$timestampAttribute-detail">$timestampAttribute</a>.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$timestampAttributeTimeZone">
        <td><a href="yii-validators-datevalidator.html#$timestampAttributeTimeZone-detail">$timestampAttributeTimeZone</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The timezone to use when populating the <a href="yii-validators-datevalidator.html#$timestampAttribute-detail">$timestampAttribute</a>.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$tooBig">
        <td><a href="yii-validators-datevalidator.html#$tooBig-detail">$tooBig</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>User-defined error message used when the value is bigger than <a href="yii-validators-datevalidator.html#$max-detail">$max</a>.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$tooSmall">
        <td><a href="yii-validators-datevalidator.html#$tooSmall-detail">$tooSmall</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>User-defined error message used when the value is smaller than <a href="yii-validators-datevalidator.html#$min-detail">$min</a>.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$type">
        <td><a href="yii-validators-datevalidator.html#$type-detail">$type</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The type of the validator.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="$when">
        <td><a href="yii-validators-validator.html#$when-detail">$when</a></td>
        <td><a href="http://www.php.net/language.types.callable">callable</a></td>
        <td>A PHP callable whose return value determines whether this validator should be applied.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="$whenClient">
        <td><a href="yii-validators-validator.html#$whenClient-detail">$whenClient</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>A JavaScript function name whose return value determines whether this validator should be applied
on the client side.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
    </table>
</div>

<a id="methods"></a>

<div class="summary doc-method">
<h2>Public Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="__call()">
        <td><a href="yii-base-component.html#__call()-detail">__call()</a></td>
        <td>Calls the named method which is not a class method.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__clone()">
        <td><a href="yii-base-component.html#__clone()-detail">__clone()</a></td>
        <td>This method is called after the object is created by cloning an existing one.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__construct()">
        <td><a href="yii-base-object.html#__construct()-detail">__construct()</a></td>
        <td>Constructor.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr class="inherited" id="__get()">
        <td><a href="yii-base-component.html#__get()-detail">__get()</a></td>
        <td>Returns the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__isset()">
        <td><a href="yii-base-component.html#__isset()-detail">__isset()</a></td>
        <td>Checks if a property is set, i.e. defined and not null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__set()">
        <td><a href="yii-base-component.html#__set()-detail">__set()</a></td>
        <td>Sets the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__unset()">
        <td><a href="yii-base-component.html#__unset()-detail">__unset()</a></td>
        <td>Sets a component property to be null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="addError()">
        <td><a href="yii-validators-validator.html#addError()-detail">addError()</a></td>
        <td>Adds an error about the specified attribute to the model object.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="attachBehavior()">
        <td><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a></td>
        <td>Attaches a behavior to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="attachBehaviors()">
        <td><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors()</a></td>
        <td>Attaches a list of behaviors to the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="behaviors()">
        <td><a href="yii-base-component.html#behaviors()-detail">behaviors()</a></td>
        <td>Returns a list of behaviors that this component should behave as.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canGetProperty()">
        <td><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></td>
        <td>Returns a value indicating whether a property can be read.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canSetProperty()">
        <td><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></td>
        <td>Returns a value indicating whether a property can be set.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="className()">
        <td><a href="yii-base-object.html#className()-detail">className()</a></td>
        <td>Returns the fully qualified name of this class.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr class="inherited" id="clientValidateAttribute()">
        <td><a href="yii-validators-validator.html#clientValidateAttribute()-detail">clientValidateAttribute()</a></td>
        <td>Returns the JavaScript needed for performing client-side validation.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="createValidator()">
        <td><a href="yii-validators-validator.html#createValidator()-detail">createValidator()</a></td>
        <td>Creates a validator object.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="detachBehavior()">
        <td><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a></td>
        <td>Detaches a behavior from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="detachBehaviors()">
        <td><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors()</a></td>
        <td>Detaches all behaviors from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="ensureBehaviors()">
        <td><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors()</a></td>
        <td>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="getBehavior()">
        <td><a href="yii-base-component.html#getBehavior()-detail">getBehavior()</a></td>
        <td>Returns the named behavior object.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="getBehaviors()">
        <td><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors()</a></td>
        <td>Returns all behaviors attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasEventHandlers()">
        <td><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers()</a></td>
        <td>Returns a value indicating whether there is any handler attached to the named event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasMethod()">
        <td><a href="yii-base-component.html#hasMethod()-detail">hasMethod()</a></td>
        <td>Returns a value indicating whether a method is defined.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasProperty()">
        <td><a href="yii-base-component.html#hasProperty()-detail">hasProperty()</a></td>
        <td>Returns a value indicating whether a property is defined for this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="init()">
        <td><a href="yii-validators-datevalidator.html#init()-detail">init()</a></td>
        <td>Initializes the object.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
            <tr class="inherited" id="isActive()">
        <td><a href="yii-validators-validator.html#isActive()-detail">isActive()</a></td>
        <td>Returns a value indicating whether the validator is active for the given scenario and attribute.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="isEmpty()">
        <td><a href="yii-validators-validator.html#isEmpty()-detail">isEmpty()</a></td>
        <td>Checks if the given value is empty.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr class="inherited" id="off()">
        <td><a href="yii-base-component.html#off()-detail">off()</a></td>
        <td>Detaches an existing event handler from this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="on()">
        <td><a href="yii-base-component.html#on()-detail">on()</a></td>
        <td>Attaches an event handler to an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                <tr class="inherited" id="trigger()">
        <td><a href="yii-base-component.html#trigger()-detail">trigger()</a></td>
        <td>Triggers an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="validate()">
        <td><a href="yii-validators-validator.html#validate()-detail">validate()</a></td>
        <td>Validates a given value.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
            <tr id="validateAttribute()">
        <td><a href="yii-mongodb-validators-mongodatevalidator.html#validateAttribute()-detail">validateAttribute()</a></td>
        <td>Validates a single attribute.</td>
        <td><a href="yii-mongodb-validators-mongodatevalidator.html">yii\mongodb\validators\MongoDateValidator</a></td>
    </tr>
            <tr class="inherited" id="validateAttributes()">
        <td><a href="yii-validators-validator.html#validateAttributes()-detail">validateAttributes()</a></td>
        <td>Validates the specified object.</td>
        <td><a href="yii-validators-validator.html">yii\validators\Validator</a></td>
    </tr>
        </table>
</div>

<div class="summary doc-method">
<h2>Protected Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
                                                                                                                            <tr id="parseDateValue()">
        <td><a href="yii-mongodb-validators-mongodatevalidator.html#parseDateValue()-detail">parseDateValue()</a></td>
        <td>Parses date string into UNIX timestamp</td>
        <td><a href="yii-mongodb-validators-mongodatevalidator.html">yii\mongodb\validators\MongoDateValidator</a></td>
    </tr>
                            <tr class="inherited" id="validateValue()">
        <td><a href="yii-validators-datevalidator.html#validateValue()-detail">validateValue()</a></td>
        <td>Validates a value.</td>
        <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
    </tr>
    </table>
</div>

<a id="events"></a>

<a id="constants"></a>
<div class="summary doc-const">
    <h2>Constants</h2>

    <p><a href="#" class="toggle">Hide inherited constants</a></p>

    <table class="summary-table table table-striped table-bordered table-hover">
    <colgroup>
        <col class="col-const" />
        <col class="col-value" />
        <col class="col-description" />
        <col class="col-defined" />
    </colgroup>
    <tr>
        <th>Constant</th><th>Value</th><th>Description</th><th>Defined By</th>
    </tr>
            <tr class="inherited" id="TYPE_DATE">
          <td id="TYPE_DATE-detail">TYPE_DATE</td>
          <td>'date'</td>
          <td>Constant for specifying the validation <a href="yii-validators-datevalidator.html#$type-detail">$type</a> as a date value, used for validation with intl short format.
</td>
          <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
        </tr>
            <tr class="inherited" id="TYPE_DATETIME">
          <td id="TYPE_DATETIME-detail">TYPE_DATETIME</td>
          <td>'datetime'</td>
          <td>Constant for specifying the validation <a href="yii-validators-datevalidator.html#$type-detail">$type</a> as a datetime value, used for validation with intl short format.
</td>
          <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
        </tr>
            <tr class="inherited" id="TYPE_TIME">
          <td id="TYPE_TIME-detail">TYPE_TIME</td>
          <td>'time'</td>
          <td>Constant for specifying the validation <a href="yii-validators-datevalidator.html#$type-detail">$type</a> as a time value, used for validation with intl short format.
</td>
          <td><a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a></td>
        </tr>
        </table>
</div>

<h2>Property Details</h2>

<div class="property-doc">

    <div class="detail-header h3" id="$mongoDateAttribute-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-mongodb-validators-mongodatevalidator.html#$mongoDateAttribute-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-mongodb/edit/master/validators/MongoDateValidator.php#L46" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-mongodb/blob/master/validators/MongoDateValidator.php#L46" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $mongoDateAttribute        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The name of the attribute to receive the parsing result as <span class="broken-link">\MongoDate</span> instance.
When this property is not null and the validation is successful, the named attribute will
receive the parsing result as <span class="broken-link">\MongoDate</span> instance.</p>
<p>This can be the same attribute as the one being validated. If this is the case,
the original value will be overwritten with the value after successful validation.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-mongodb-validators-mongodatevalidator.html#$mongoDateAttribute-detail">$mongoDateAttribute</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>

</div>
<h2>Method Details</h2>

<div class="method-doc">

    <div class="detail-header h3" id="parseDateValue()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-mongodb-validators-mongodatevalidator.html#parseDateValue()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-mongodb/edit/master/validators/MongoDateValidator.php#L78" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-mongodb/blob/master/validators/MongoDateValidator.php#L78" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        parseDateValue()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Parses date string into UNIX timestamp</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.boolean">false</a></span> <strong><a href="yii-mongodb-validators-mongodatevalidator.html#parseDateValue()-detail">parseDateValue</a></strong> ( <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>String representing date</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a>|<a href="http://www.php.net/language.types.boolean">false</a></td>
                  <td class="param-desc-col"><p>A UNIX timestamp or <code>false</code> on failure.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="validateAttribute()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-mongodb-validators-mongodatevalidator.html#validateAttribute()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-mongodb/edit/master/validators/MongoDateValidator.php#L52" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-mongodb/blob/master/validators/MongoDateValidator.php#L52" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        validateAttribute()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Validates a single attribute.</strong></p>

        <p>Child classes must implement this method to provide the actual validation logic.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-mongodb-validators-mongodatevalidator.html#validateAttribute()-detail">validateAttribute</a></strong> ( <span style="color: #0000BB">$model</span>, <span style="color: #0000BB">$attribute</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$model</span></td>
                  <td class="param-type-col"><a href="yii-base-model.html">yii\base\Model</a></td>
                  <td class="param-desc-col"><p>The data model to be validated</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$attribute</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the attribute to be validated.</p>
</td>
                </tr>
                                                </table>

<!--	-->
</div>
        </div>
</div>

<script type="text/javascript">
    /*<![CDATA[*/
    $("a.toggle").on('click', function () {
        var $this = $(this);
        if ($this.hasClass('properties-hidden')) {
            $this.text($this.text().replace(/Show/,'Hide'));
            $this.parents(".summary").find(".inherited").show();
            $this.removeClass('properties-hidden');
        } else {
            $this.text($this.text().replace(/Hide/,'Show'));
            $this.parents(".summary").find(".inherited").hide();
            $this.addClass('properties-hidden');
        }

        return false;
    });
    /*
     $(".sourceCode a.show").toggle(function () {
     $(this).text($(this).text().replace(/show/,'hide'));
     $(this).parents(".sourceCode").find("div.code").show();
     },function () {
     $(this).text($(this).text().replace(/hide/,'show'));
     $(this).parents(".sourceCode").find("div.code").hide();
     });
     $("a.sourceLink").click(function () {
     $(this).attr('target','_blank');
     });
     */
    /*]]>*/
</script>


</div>

<footer class="footer">
        <p class="pull-right"><small>Page generated on Sat, 09 Jul 2016 12:15:56 +0000</small></p>
    Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></footer>

<script type="text/javascript">jQuery(document).ready(function () {
    var shiftWindow = function () { scrollBy(0, -50) };
    if (location.hash) setTimeout(shiftWindow, 1);
    window.addEventListener("hashchange", shiftWindow);
var element = document.createElement("script");
element.src = "./jssearch.index.js";
document.body.appendChild(element);

var searchBox = $('#searchbox');

// search when typing in search field
searchBox.on("keyup", function(event) {
    var query = $(this).val();

    if (query == '' || event.which == 27) {
        $('#search-resultbox').hide();
        return;
    } else if (event.which == 13) {
        var selectedLink = $('#search-resultbox a.selected');
        if (selectedLink.length != 0) {
            document.location = selectedLink.attr('href');
            return;
        }
    } else if (event.which == 38 || event.which == 40) {
        $('#search-resultbox').show();

        var selected = $('#search-resultbox a.selected');
        if (selected.length == 0) {
            $('#search-results').find('a').first().addClass('selected');
        } else {
            var next;
            if (event.which == 40) {
                next = selected.parent().next().find('a').first();
            } else {
                next = selected.parent().prev().find('a').first();
            }
            if (next.length != 0) {
                var resultbox = $('#search-results');
                var position = next.position();

//              TODO scrolling is buggy and jumps around
//                resultbox.scrollTop(Math.floor(position.top));
//                console.log(position.top);

                selected.removeClass('selected');
                next.addClass('selected');
            }
        }

        return;
    }
    $('#search-resultbox').show();
    $('#search-results').html('<li><span class="no-results">No results</span></li>');

    var result = jssearch.search(query);

    if (result.length > 0) {
        var i = 0;
        var resHtml = '';

        for (var key in result) {
            if (i++ > 20) {
                break;
            }
            resHtml = resHtml +
            '<li><a href="' + result[key].file.u.substr(3) +'"><span class="title">' + result[key].file.t + '</span>' +
            '<span class="description">' + result[key].file.d + '</span></a></li>';
        }
        $('#search-results').html(resHtml);
    }
});

// hide the search results on ESC
$(document).on("keyup", function(event) { if (event.which == 27) { $('#search-resultbox').hide(); } });
// hide search results on click to document
$(document).bind('click', function (e) { $('#search-resultbox').hide(); });
// except the following:
searchBox.bind('click', function(e) { e.stopPropagation(); });
$('#search-resultbox').bind('click', function(e) { e.stopPropagation(); });

});</script></body>
</html>
